# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=pekwm
pkgver=0.2.1
pkgrel=0
pkgdesc="Fast & Light Window Manager"
url="https://github.com/pekdon/pekwm"
arch="all"
license="GPL-2.0-or-later"
makedepends="libx11-dev libpng-dev libxpm-dev libxrender-dev libxrandr-dev
	cmake"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/pekdon/pekwm/archive/release-$pkgver.tar.gz"
builddir="$srcdir/pekwm-release-$pkgver"

build() {
	cmake -B build . \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_BUILD_TYPE=None
	make -C build
}

package() {
	make -C build DESTDIR="$pkgdir" install
}

sha512sums="
9601ca5958b29e6d682ed0d56bc63d0a874aa9ba8f81f9341865bd54c45a3865b7d8907fd58cc427189a5f8f13341c41e9baa9fd4c07db68351b24d52bbf1825  pekwm-0.2.1.tar.gz
"
